package com.hongye.executor.service.jobhandler;
import com.hongye.executor.feign.BackStageFeign;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

;import java.util.Date;

/**
 * @author caojianbin
 * @time 2022/4/20
 */
@Component
@Log4j2
public class GroupLookHouseService {

    @Autowired
    private BackStageFeign backStageFeign;


    /**
     * 定时任务
     * 定时给es添加数据
     */
    @XxlJob("findGroupBuyHouseToAddEs")
    public void findGroupBuyHouseToAddEs(){
        backStageFeign.addToEs();
    }

    /**
     * 测试
     */
    @XxlJob("test")
    public void test(){
        log.info("test+++{}",new Date());
    }
}
